package com.qixia.upload.service;

import com.creek.data.DataMap;
import com.qixia.upload.dao.mapper.SystemUploadFileMapper;
import com.qixia.upload.dao.model.SystemUploadFile;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author Sven
 * @since 2019-12-05
 */
@Service
@Slf4j
public class SystemUploadFileServiceImpl implements SystemUploadFileService {

    @Resource
    private SystemUploadFileMapper systemUploadFileMapper;

    @Override
    public int insertUploadFile(SystemUploadFile systemUploadFile) {
        return systemUploadFileMapper.insertSelective(systemUploadFile);
    }

    @Override
    public SystemUploadFile getSystemUploadFileById(String id) {
        return systemUploadFileMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<DataMap> getSystemUploadFileListById(List<String> idList) {
        return systemUploadFileMapper.getSystemUploadFileListById(idList);
    }
}
